package com.yyy.controller;

import com.yyy.pojo.tb_door;
import com.yyy.service.Tb_DoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class TestController {
    @Autowired
    Tb_DoorService tb_doorService;

    @RequestMapping("/testmvc")
    public String testmvc(){
        List<tb_door> all = tb_doorService.findAll();
        for(tb_door  item:all){
            System.out.println(item.toString());
        }
        return "test";
    }
}
